function greetOptional(name, age) {
    return age !== undefined
        ? "Hello, ".concat(name, ". You are ").concat(age, " years old")
        : "Hello ".concat(name);
}
function greetDefault(name, age) {
    if (age === void 0) { age = 25; }
    return "Hello, ".concat(name, ". You are ").concat(age, " years old!");
}
console.log(greetOptional("alen", 444));
console.log(greetOptional("Charlie"));
console.log(greetDefault("NewSpace"));
console.log(greetDefault("Tim lin", 899));
